import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import Grzx from '../views/Grzx.vue'
import AboutView from '../views/AboutView.vue'
import Squ from '../views/Squ.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/home',
    name: 'home',
    component: HomeView
  },
  {
    path: '/grzx',
    name: 'grzx',
    component: Grzx
  },
  {
    path: '/squ',
    name: 'squ',
    component: Squ
  },
  {
    path: '/about',
    name: 'about',
    component: AboutView
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
